// dlg.txt

//		mark_quest_dest(zone,x,y,layer,quest);
//		cancel_out_fight(0,short kill_enc);
//		make_outdoor_enc(short x,short y,short which_enc);
//		set_out_fight_field(short which_field);
// 				which_field is 0-20

begintalkscript;

variables;

short this_sec = 38;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0 && get_sdf(100 + this_sec,2) == 0;
	text1 = "You climb north up a steep trough in the cave system. Above you and not far ahead, you see a pair of crumbling towers. The streams of slime run out at their bases.";
	text2 = "Your hair starts to stand on end. There is a heavy aura of magic in the air. The ruins were built by wizards and then abandoned. A common problem in the Empire. At least the salvage you can find is usually excellent.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0 && get_sdf(100 + this_sec,1) == 0;
	text1 = "To the south, you see two huge crumbling towers. Streams of slime run out at their bases to the south.";
	text2 = "Your hair starts to stand on end. There is a heavy aura of magic in the air. The ruins were built by wizards and then abandoned. A common problem in the Empire. At least the salvage you can find is usually excellent.";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "You find a pile of old junk. Rotting boxes. Broken flasks. Journals eaten to bits by corrosive slime. When the towers above you were abandoned, this was all the stuff not worth carrying out.";
	text2 = "One item stands out. It survived while all the other stuff decayed away. It's an ivory tube, sealed with wax. You find a scroll inside.";
	code =
		sf(100 + this_sec,3,1);
		reward_give(407);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////

begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "There is a shade standing on the crumbling road leading up to the base of a tower. It's the ghost of a human. (Or a magical construct that looks like one.) He stares at you as you approach, but he makes no move to flee or attack.";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Hit it.";
	text1 = "Your attack passes through him harmlessly. There is no substance to him. He looks annoyed.";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Talk to him.";
	text1 = "You approach and get a good look at him. He is human. Not Ro. You can't tell the color of his skin or his hair, because he is translucent. His face has a peculiar shape.";
	text2 = "He says, _I am of the Nisse._";

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Just pass.";
	text1 = "He watches you quietly as you pass.";
	action = END_TALK;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_I know of the Nisse._";
	text1 = "_We travel. We watch. We watch Haven with particular interest._";
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = gf(97,0) > 0 && gf(97,0) < 7;
	question = "_The Nisse gave me a boon on Sacramentum._";
	text1 = "_We have not forgotten. All debts will be paid._";
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = gf(97,0) >= 7;
	question = "_The Nisse totally submitted to me on Sacramentum._";
	text1 = "_We have not forgotten the humiliation you handed us. All promises we gave you will be honored._";

begintalknode;
	state = 11;
	nextstate = 12;
	condition = 1;
	question = "_And?_";
	text1 = "_We can be found to the north, beyond the tower. We want to speak with you._";
	text2 = "_We might even give you a boon._";
	code =
		if (gf(97,0) > 0)
			rs(2);
	break;

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_Speak about what?_";
	text1 = "He stays silent.";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = gf(97,0) == 0;
	question = "_A boon?_";
	text1 = "_A tribute to your might, if you are wise enough to take it._";

begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_I don't trust you._";
	text1 = "_You should. We have so very much to talk about. So much to offer. We wait._";
	text2 = "He vanishes.";
	action = END_TALK;
	code =
		cancel_out_fight(0,1);
	break;
		
begintalknode;
	state = 12;
	nextstate = -1;
	condition = 1;
	question = "_I will find you._";
	text1 = "_That is wise. We have so, so much to offer you. We will wait._";
	text2 = "He vanishes.";
	action = END_TALK;
	code =
		cancel_out_fight(0,1);
	break;

	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				